package com.qmerak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qmerak.dao.impl.OrgHonourDao;
import com.qmerak.entity.OrgEntity;
import com.qmerak.entity.OrgHonourEntity;
import com.qmerak.service.IOrgHonourService;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-21
 * @project TUManager
 */
@Service
public class OrgHonourServiceImpl implements IOrgHonourService {
	@Autowired
	private OrgHonourDao orgHonourDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgHonourService#add(com.entity.OrgHonourEntity)
	 */
	@Override
	public OrgHonourEntity add(OrgHonourEntity entity) {
		return orgHonourDao.add(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgHonourService#update(com.entity.OrgHonourEntity)
	 */
	@Override
	public void update(OrgHonourEntity entity) {
		orgHonourDao.update(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgHonourService#delete(com.entity.OrgHonourEntity)
	 */
	@Override
	public void delete(OrgHonourEntity entity) {
		orgHonourDao.remove(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgHonourService#honoursOfOrg(com.entity.OrgEntity)
	 */
	@Override
	public List<OrgHonourEntity> honoursOfOrg(OrgEntity entity) {
		return orgHonourDao.honoursOfOrg(entity);
	}

}
